<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<PixsterViewModel>" %>

<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">
	Pixter - <%= Model.CurrentDirectory.Name %>
</asp:Content>

<asp:Content ID="indexScript" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>

<asp:Content ID="indexStyle" ContentPlaceHolderID="StyleContent" runat="server">
    <link href="<%= Url.Stylesheet("gallery-style.css")%>" rel="stylesheet" type="text/css"/>
</asp:Content>

<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">

<% if (Model.CurrentDirectory.Albums != null && Model.CurrentDirectory.Albums.Count > 0) { %>

<div id="primary_content">
    <div id="main-content"> 
        <ul>
<% 
    foreach (var a in Model.CurrentDirectory.Albums) 
       {
%>
            <li>
                <a href="<%= Url.Album(Model.CurrentDirectory.SeoName, a.SeoName) %>"><img src="<%= a.Photos[0].ThumbPath %>" alt="<%= a.Name %>" /></a>
            </li>
<% 
       } 
%>
        </ul>
        
        <div class="clear">&nbsp;</div>
            
    </div><!--/#portfolio-->
    
</div> <!--/#primary_content-->

<% } %>

</asp:Content>
